package com.hbmcc.heshenghuo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.hbmcc.heshenghuo.flow.FloorMyFrgFlowView
import com.hbmcc.heshenghuo.pager.*

const val IS_LOGIN = true
class MainActivity : AppCompatActivity() {

    private lateinit var pagerView: FloorMyFrgPagerView

    private lateinit var flowView: FloorMyFrgFlowView


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        pagerView = FloorMyFrgPagerView(findViewById(R.id.icl_pager)) //初始化个人信息

        flowView = FloorMyFrgFlowView(findViewById(R.id.icl_flow)) //初始化流量楼层

    }

    override fun onResume() {
        super.onResume()
        pagerView.startTimer()
        flowView.startTimer()
    }

    override fun onPause() {
        pagerView.stopTimer()
        flowView.stopTimer()
        super.onPause()
    }

}
